using Newtonsoft.Json;

namespace my_newconsole.Report;

public class TJB_Structural : Base_Structural
{
    public static List<IndexItem> Indexs { get; set; }

    static TJB_Structural()
    {
        var json = File.ReadAllText("./ReportJson/TJB.json");
        Indexs = JsonConvert.DeserializeObject<List<IndexItem>>(json);
        Indexs.ForEach(a => a.Code = "TJB-" + a.Sort);
    }

    public TJB_Structural(HISRISReportDTO report)
        : base(report) { }

    public override List<IndexItem> GetIndexs()
    {
        return Indexs;
    }
}
